-- GENERATED SPELL FOR [Andrion Darkspinner] --


function spell0_22212(pUnit, Event) --@Unlearn Shadoweave Tailoring,n/a--
pUnit:FullCastSpellOnTarget(41559,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22212', 590, 1)
end

function Sorts_22212(pUnit, Event)
local choix_sorts_22212 = math.random(0, 0)
if choix_sorts_22212 == 0 then
pUnit:RegisterEvent('spell0_22212', 1, 1)
end
end

function mob22212_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22212', math.random(1500, 3000), 1)
end

function mob22212_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22212_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22212_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22212, 1, 'mob22212_Action')
RegisterUnitEvent(22212, 2, 'mob22212_Leave')
RegisterUnitEvent(22212, 3, 'mob22212_Kill')
RegisterUnitEvent(22212, 4, 'mob22212_Die')
